package com.cskaoyan.bean.bo;

import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.plugin.Intercepts;

import javax.validation.constraints.Digits;
import java.util.List;

/**
 * @author zhuqiushi
 * @since 2022/09/06 22:57
 */
@NoArgsConstructor
@Data
public class AdminGoodsCreateBO {
    private GoodsDTO goods;
    private List<SpecificationsDTO> specifications;
    private List<ProductsDTO> products;
    private List<AttributesDTO> attributes;

    @NoArgsConstructor
    @Data
    public static class GoodsDTO {
        private String picUrl;
        private List<String> gallery;
        private Boolean isHot;
        private Boolean isNew;
        private Boolean isOnSale;
        private String goodsSn;
        private String name;
        private String counterPrice;
        private String unit;
        private String keywords;
        private Integer categoryId;
        private Integer brandId;
        private String brief;
        private String detail;
    }

    @NoArgsConstructor
    @Data
    public static class SpecificationsDTO {
        private String specification;
        private String value;
        private String picUrl;
    }

    @NoArgsConstructor
    @Data
    public static class ProductsDTO {
        private Integer id;
        private List<String> specifications;
        private String price;
        private String number;
        private String url;
    }

    @NoArgsConstructor
    @Data
    public static class AttributesDTO {
        private String attribute;
        private String value;
    }


}
